const UserUtils = {
	checkoutMobile(mobile) {
		var reg = /^1[3456789]\d{9}$/;
		if(reg.test(mobile)){
			return true
		} else {
			return false
		}
	},
	
	setToken(){
		localStorage.setItem("token","13472d0e-e60b-4fe6-8896-e36a64b55b21")
	},
	
	getToken(){
		return localStorage.getItem("token")
	},
	
	isLogin(){
		var token =  localStorage.getItem("token");
		if(token){
			return true
		} else {
			return false
		}
	}
}

export default UserUtils;